package factory.one.entity;

/**
 * @author sk.z
 * 2023/6/26
 * 产品
 **/
public class Product {

    private Long id;
    private String name;
    private Integer status; //0-删除 1-正常

    public static final String CREATE_SQL = "    create table PRODUCT (\n" +
            "        ID bigint not null GENERATED ALWAYS AS IDENTITY,\n" +
            "        NAME varchar(64) not null,\n" +
            "        STATUS int not null,\n" +
            "        primary key (ID)\n" +
            "    )";

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }
}
